import Mock from 'mockjs'
Mock.setup({
  timeout: '300-600'
})
let orderData = Mock.mock({
  'code': 0,
  'msg': '处理成功',
  'data': {
    'total': 1,
    'list': [
      {
        'id': 1,
        'orderId': '1812345',
        'userId': 1,
        'userName': '18123456789',
        'accountId': '18123456789',
        'orderTime': '2019-05-29 10:00:00',
        'orderType': 1,
        'payPrice': '10',
        'effectivedateBegin': '2019-05-29',
        'effectivedateEnd': '2019-06-29',
        'productId': '001',
        'productName': '包月套餐',
        'describe': '这是包月套餐',
        'price': '10',
        'duration': 1,
        'autoRenew': 1
      }
    ]
  }
})
Mock.mock(/\/api\/order/, 'get', orderData)

let orderAddRes = Mock.mock({
  'code': 0,
  'msg': '处理成功'
})
Mock.mock(/\/api\/order/, 'put', orderAddRes)

export default Mock
